package com.tanhua.autoconfig;


import com.tanhua.autoconfig.properties.CosProperties;
import com.tanhua.autoconfig.template.CosTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@EnableConfigurationProperties({
//        SmsProperties.class
        CosProperties.class
})
public class TanhuaAutoConfiguration {

    //    @Bean
//    public SmsTemplate smsTemplate(SmsProperties properties) {
//        return new SmsTemplate(properties);
//    }
    @Bean
    public CosTemplate smsTemplate(CosProperties properties) {
        return new CosTemplate(properties);
    }
}
